<template>
    <div>
        <button class="alter" @click="alter">alter</button>
        <button class="confirm" @click="confirm">confirm</button>
        <button @click="printRouter">router</button>
        <el-dialog v-model="visible">
            加油啊傻逼
        </el-dialog>
    </div>

</template>
<script>
import {ElButton, ElDialog, ElMessageBox} from 'element-plus'
//import printRouter from '@/utils/router'
export default {
    data(){
        return {
            visible: true
        }
    },
    methods:{
        confirm(){
            ElMessageBox.confirm(
                'proxy will permanently delete the file. Continue?',
                'Warning999',
                {
                    confirmButtonText: 'OK',
                    cancelButtonText: 'Cancel',
                    type: 'error',
                }
            )
        },
        printRouter(){
            this.$router.getRoutes().forEach(route => {
                console.log(route.path, route.name, route.meta);
            });
            //printRouter()
        }
    }
}
</script>
